#include "Cell.h"

Cell::Cell():
	symbol('\0') {
}

Cell::Cell(const char & symbol):
	symbol(symbol) {

}

const Cell Cell::FREE = Cell('-');
const Cell Cell::OCCUPIED = Cell('X');
const Cell Cell::PLAYER = Cell('*');

ostream & operator <<(ostream & outputStream, const Cell & cell) {
	outputStream << cell.symbol;
	return outputStream;
}

bool operator ==(const Cell & first, const Cell & second) {
	return first.symbol == second.symbol;
}

bool operator !=(const Cell & first, const Cell & second) {
	return ! (first == second);
}
